package com.jml.每特.mybatis注解.sql;

import com.jml.每特.mybatis注解.aop.MyInvocationHandlerMybatis;
import java.lang.reflect.Proxy;

public class SqlSession {
	//加载mapper
	public static <T> T getMapper(Class classz){
		return (T) Proxy.newProxyInstance(
				classz.getClassLoader(),
				new Class[]{classz},
				new MyInvocationHandlerMybatis(classz));

	}
}
